﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Animal
    {
        private string eat;
        private string name;
        public string Name
        {
            get { return this.name; }
            set { this.name = value; }
        }
        public void Eat()
        {
            Console.WriteLine("我是{0},我还会吃",this.Name);
        }
            
    }
}
